import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/api/login',
    method: 'post',
    data
  })
}

export function getUserInfo(token) {
  return request({
    url: '/api/getUserInfo',
    method: 'post',
    headers: token
  })
}


export function refreshToken(token) {
  return request({
    url: '/api/refreshToken',
    method: 'post',
    params: { token }
  })
}

// export function logout() {
//   return request({
//     url: '/user/logout',
//     method: 'post'
//   })
// }
